<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>System zarządzania sprzętem</title>
		<link rel="stylesheet" href="web/style.css">
	</head>
	<body>
		{% include "header.htm" %}
		<table id="main">
    		{% for computer in list %}
			<tr>
				<td><a href="/detail?key={{computer.key}}">{{computer.hostname}}</a></td>
				<td>{{computer.ip}}</td>
				<td>
					<ul>
						{% for i in computer.interfaces %}
							{% for name, mac in i.items() %}
								<li>{{name}}: {{mac}}</li>
							{% endfor %}
						{% endfor %}
					</ul>
				</td>
				<td>{{computer.os}}</td>
				<td>{{computer.key}}</td>
			</tr>	
			{% endfor %}
		</table>
		<footer>Copyright &copy; by The Independend State Of Kanciapa</footer>
	</body>
</html>